"""
end=""不换行
"""
row = 0
while row<5:
    col = 1
    while col <= 3:
        print(col,end=" ")
        col+=1
        
    #打印换行
    print()
    row += 1